#include<iostream>
using namespace std;
class Renthome{

public:
  void virtual renthome()=0;

};

class landlord:public Renthome
{

public:
  void virtual renthome()
  {

   cout<<"我要出租房"<<endl;

  }

};


class mediator:public Renthome
{
 

public:
  void virtual renthome()
  {
   _landlorder.renthome();
   cout<<"我要维修房"<<endl;
   cout<<"我要带人看房"<<endl;
   

  }


private:

landlord _landlorder;


};

int main()
{

mediator    _mediator;
 _mediator.renthome();

}